package com.zhl.dom;

import org.junit.Test;

import java.io.*;

/**
 * @program: demos
 * @description:
 * @author: 刘振华
 * @create: 2020-06-10 10:55
 **/
public class InsertBatchOracle {
	@Test
	public void insert()throws Exception{
		String path = "";
		String sql = sql(path);
		System.out.println(sql);
		executeBatchInsert(sql);

	}
	private void executeBatchInsert(String sql){

	}
	private String sql(String path)throws Exception{
		String encoding = "UTF-8";
		File file = new File(path,encoding);
		Long filelength = file.length();
		byte[] filecontent = new byte[filelength.intValue()];
		FileInputStream in = null;
		try {
			in = new FileInputStream(file);
			in.read(filecontent);
			return new String(filecontent, encoding);
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}finally {
			if(null != in) {
				in.close();
			}
		}
		return null;
	}
}
